<?php

/**
 * 会员中心
 */
namespace User\Controller;
use Common\Controller\MemberbaseController;
class CenterController extends MemberbaseController {
	
	protected $users_model;
	function _initialize(){
		parent::_initialize();
	
	}
    //会员中心
	public function index() {
		
		$where['endtime'] = array ("gt", strtotime(date("Y-m-d H",time()))	);
		$where ['status'] = array ("EQ",1 	);
		
		
		$trade=D("Resume")->where(array("uid"=>$this->u[id]))->getField("trade");
		
		if($trade){
			$where ['trade'] = $trade;
			
		}
		$field = "id,uid,endtime,type,title,num,companyname,sex_cn,district_cn,education_cn,wage_cn,experience_cn,lev,updatetime";
		 
		$job_list=D("Job")->where($where)->limit("10")->field($field)->select();
		
	
		$this->assign('_list',$job_list);
    	$this->display('');
    }
}
?>
